<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<div id='mainNav' class='gadget'>
<ul>
<li><h2><span><a href="index.php?noidung=dsmt_td_v">Tin tuyển dụng</a></span></h2></li>
<div class='clr'></div>
</ul>
</div>
<?php
$sql = "SELECT * FROM the_loai_tin";					
$rs=mysql_query($sql);					

$count = mysql_num_rows($rs);
$index = 1;
while ($row = mysql_fetch_array($rs)) 
{
?>
<div id='mainNav' class='gadget'>
		<ul <?php if($index == $count) { ?> class="last" <?php } ?> >
		  <li><h2><span> <?php echo $row["1"]; ?></span></h2>
		  <div class='clr'></div>
		  <ul class='sb_menu'>
<?php
$index++ ; 
$sql2 = "SELECT * FROM MUC_TIN WHERE MS_LOAI_TIN =".$row['MS_LOAI_TIN'];
$rs2 = mysql_query($sql2);
while($row2 = mysql_fetch_array($rs2))
{
?>
    <li>
        <a href='index.php?noidung=dsmt_rv_v&muc_t=<?php echo $row2["0"]; ?>' > <?php echo $row2["2"]; ?></a>
    </li>
	
<?php } ?>
	</ul>
	</li>
  </ul>
</div>
<?php
}	
?>
